const reducer = (state, action) => {
  const { type, payload } = action;
  switch (type) {
    case 'changeValue':
      return { ...state, ...payload };
    default:
      return state
  }
};
export default reducer;